home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / lang / c--ex101 / simple / simple02.c-- < prev    next >
Text File  |  1993-11-29  |  2KB  |  36 lines

  1. /*
  2.     FILENAME:  SIMPLE02.C--
  3.  
  4.     DESCRIPTION:  This is the second in a list of progressing example files
  5.                   to teach you how to use C--.
  6.                   This program waits for two keys to be pressed on the
  7.                   keyboard and then exits.
  8.  
  9.     CONCEPTS:  - There are three main procedure types in C--.  STACK 
  10.                  procedures are procedures which the parameters are passed
  11.                  on the stack.  REG procedures are procedures which
  12.                  parameters are passed in registers.  And finally MACROS,
  13.                  which are simple REG procedures, but the code is inserted
  14.                  at that location into the code, instead of calling.  STACK
  15.                  procedure names must have at least one lower case letter in
  16.                  it, and REG procedure and MACRO names must not contain any
  17.                  lower case letters.  To indicate that you want to use a REG
  18.                  procedure as a macro put an @ symbol before it.
  19.                - For a list and description of most of the STACK procedures
  20.                  see STAKPROC.DOC (press SHIFT F10 in work bench).
  21.                - For a list and description of most of the REG procedures and
  22.                  MACROS see REGPROC.DOC (press CTRL F10 in work bench).
  23.  
  24.     COM FILE SIZE:  42 bytes.
  25. */
  26.  
  27. ?include "KEYCODES.H--"
  28.  
  29.  
  30. main()           
  31. {
  32. @ BIOSREADKEY();  // wait for a key using BIOSREADKEY() macro 
  33. BIOSREADKEY();    // wait for a key using BIOSREADKEY() REG procedure
  34.  
  35. /* end of SIMPLE02.C-- */